package a.g;

import a.c.y;
import a.i.n;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class hb
  implements ActionListener
{
  private gb a;
  private ib b;
  private static final int c = 5;
  private JMenu d;
  public static boolean e;
  
  public hb(gb paramgb, ib paramib)
  {
    this.a = paramgb;
    this.b = paramib;
  }
  
  public void a(JMenu paramJMenu)
  {
    int i = f.p;
    boolean bool = f.o;
    n.a(5, "Create Menu for Package: " + this.a.b());
    y localy = this.a.d();
    do
    {
      do
      {
        if (!localy.e()) {
          break;
        }
        paramJMenu.add(((gb)localy.j()).a(this.b));
        localy.f();
        if (i != 0) {
          break label117;
        }
        if (bool) {
          break label111;
        }
      } while (!bool);
    } while (i != 0);
    localy = this.a.c();
    label111:
    label117:
    do
    {
      if (!localy.e()) {
        break;
      }
      String str = (String)localy.j();
      n.a(5, "Add item: " + str);
      JMenuItem localJMenuItem = new JMenuItem(str);
      localJMenuItem.addActionListener(this);
      paramJMenu.add(localJMenuItem);
      localy.f();
    } while (!bool);
  }
  
  public JMenu a()
  {
    this.d = new JMenu(this.a.b());
    a(this.d);
    return this.d;
  }
  
  public void actionPerformed(ActionEvent paramActionEvent)
  {
    String str = paramActionEvent.getActionCommand();
    f localf = this.a.b(str);
    if (f.p == 0)
    {
      if (localf != null) {
        this.b.a(localf);
      }
    }
    else if (!f.o) {
      return;
    }
    System.err.println("Cannot execute module: " + str);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.g.hb

 * JD-Core Version:    0.7.0.1

 */